#include <stdio.h>
void change_num(double * a, double * b, double * c);

int main(void)
{
    double a, b, c; 

    printf("输入三个浮点数(q to quit): ");
    while (scanf("%lf %lf %lf", &a, &b, &c) == 3)
    {
        change_num(&a, &b, &c);
        printf("%.2lf %.2lf %.2lf\n", a, b, c);
        printf("可以继续输入三个浮点数(q to quit): ");
    }
    printf("Bye!\n");

    return 0;
}

void change_num(double * a, double * b, double * c)
{   
    double temp;

    if (*a < *b)
    {
        temp = *a;
        *a = *b; 
        *b = temp;
    }
    if (*a < *c)
    {
        temp = *a;
        *a = *c; 
        *c = temp;
    }
    if (*b < *c)
    {
        temp = *b; 
        *b = *c; 
        *c = temp;
    }
}

